package cn.java.juicer;

/*3：重写前面的榨汁机榨汁场景。榨汁机有品牌，功耗等属性，有启动，榨汁，停止等方法
 水果有梨子、香蕉和菠萝，都可以用来榨汁。。*/
public class Juicer {
	private String brand;// 名称
	private String power;

	public Juicer(String brand, String power) {
		this.brand = brand;
		this.power = power;
	}

	public void show() {
		System.out.println("这是一个" + brand + "牌的榨汁机，功率为：" + power + "瓦。");
	}

	public void start() {
		System.out.println("按下开关，榨汁机开始启动。");
	}

	public void juicing(String fruit) {
		fruit = fruit + "汁";
		System.out.println("一杯" + fruit + "开始制作！");
	}

	public void juicing() {
		System.out.println("榨汁机高速运转中。");
	}

	public void stop() {
		System.out.println("搅拌均匀，榨汁过程完成。。");
	}private String brand;// 名称
	private String power;

	public Juicer(String brand, String power) {
		this.brand = brand;
		this.power = power;
	}

	public void show() {
		System.out.println("这是一个" + brand + "牌的榨汁机，功率为：" + power + "瓦。");
	}

	public void start() {
		System.out.println("按下开关，榨汁机开始启动。");
	}

	public void juicing(String fruit) {
		fruit = fruit + "汁";
		System.out.println("一杯" + fruit + "开始制作！");
	}

	public void juicing() {
		System.out.println("榨汁机高速运转中。");
	}

	public void stop() {
		System.out.println("搅拌均匀，榨汁过程完成。。");
	}

}
